Node-RED block in Snap4City Microservice library node-red-contrib-snap4city-developer is "tpl-stops">

Provide a list of the public transport stops available for a given route.

Inputs

A JSON with these parameters:
route string
URI of the route whose bus stops are to be retrieved
geometry boolean
true/false, if true it returns a “hasGeometry” property for each service stating if the service has a complex WKT geometries (linestring, polygon) associated with it (if parameter is missing “false” is assumed)

Outputs

It provides an JSON Object with line number (aka line short name) and line name (aka line long name) and a GeoJSON FeatureCollection with the stops. The stops are provided in stop order, from the first to the last

Details

The node can receive a JSON with the parameters described in the Inputs section and with them generate the output JSON. If the values are not present in the input JSON, these are read by those in the configuration. If they are not present in either part, an error is generated for the necessary parameters.